package net.xmmpp.uc.im.bootstrap.web.controller.sentinel;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;


@RestController
public class DegradeDashboardController {

    @GetMapping("/degradeDash")
    public String dash() {
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        return "Hello Dash "  + new Date();
    }

    @GetMapping("/clean/{id}")
    public String clean(@PathVariable("id") String id) {

        return "clean " + id;
    }

}
